package dao;

import dao.inte.ImageEntryDAO;
import domain.ImageEntry;

/**
 * com.mysticcoders.pastebin.dao.ImageEntryDAOHibernate
 * -
 * An implementation of ImageEntryDAO that loads and stores uploaded image
 * data into a database using Hibernate.
 * <p/>
 * <P><STRONG>Revision History:</STRONG><UL>
 * <LI>Dec 6, 2005 This class was created by Philip A. Chapman.</LI>
 * </UL></P>
 *
 * @author pchapman
 */
public class ImageEntryDAOHibernate extends AbstractEntityRepository<ImageEntry> implements ImageEntryDAO {
    public ImageEntryDAOHibernate() {
        super(ImageEntry.class);
    }

    /**
     * @see shop.application.repository.inte.ImageEntryDAO#lookupImageEntry(Long)
     */
    public ImageEntry lookupImageEntry(Long id) {
        return findById(id);
    }

    @Override
    protected Class<ImageEntry> getEntityClass() {
        return ImageEntry.class;
    }
}
